package cn.edu.scau.cmi.yeshaoying.client;

import cn.edu.scau.cmi.yeshaoying.adapter.*;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;

public class AdapterController {
	Target classTarget=new AdapterOfClass();	
	Target objectTarget=new AdapterOfObject();

	@FXML
    private TextArea o1, o2;

    @FXML
    private TextArea i1, i2, i3;
    
    @FXML
    private Button b1, b2;
    
    @FXML
    void b1c(ActionEvent event) {
    	o1.setText(classTarget.doTarget(Integer.valueOf(i1.getText()), Integer.valueOf(i2.getText())));
    }

    @FXML
    void b2c(ActionEvent event) {
    	o2.setText(objectTarget.doTarget(Integer.valueOf(i1.getText()), Integer.valueOf(i3.getText())));
    }
}
